MenuPopupWindow

A MenuPopupWindow represents the popup window for menu. MenuPopupWindow is mostly same as ListPopupWindow, but it has customized behaviors specific to menus,

Constructors

Link copied to clipboard
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet, defStyleAttr: Int, defStyleRes: Int)

Types

Functions

Link copied to clipboard
open fun onItemHoverEnter(@NonNull menu: @NonNull MenuBuilder, @NonNull item: @NonNull MenuItem)
Called when hover enters a menu item.
Link copied to clipboard
open fun onItemHoverExit(@NonNull menu: @NonNull MenuBuilder, @NonNull item: @NonNull MenuItem)
Called when hover exits a menu item.
Link copied to clipboard
open fun setEnterTransition(enterTransition: Any)
Link copied to clipboard
open fun setExitTransition(exitTransition: Any)
Link copied to clipboard
open fun setHoverListener(hoverListener: MenuItemHoverListener)
Link copied to clipboard
open fun setTouchModal(touchModal: Boolean)
Set whether this window is touch modal or if outside touches will be sent to other windows behind it.